<div class="left span65">
	<p><?= $this->Form->button('Odštampajte recept', array(
        'onclick' => 'var win=window.open(\'/recepti/stampa/' . $receipe['Receipe']['id'] . '\', \'print\', \'width=600,height=800,scrollbars=1\');win.focus()',
        'class'   => 'print right'
	)) ?></p>
	<br clear="all">
	<h3>Materijal:</h3>
	<?= $this->Html->image('recepti/'.$receipe['Receipe']['image'], array('align'=>'right')); ?>
	<ul class="clean receipe-material">
		<? foreach($receipe['ReceipeMaterial'] as $material): ?>
		<li>
			<span class="name">
				<? if (! empty($material['product_id'])): ?>
					<?= $this->Html->link($material['name'], '/proizvodi/proizvod/'.$material['product_id'] . "/" .urlize($material['name'])) ?>
				<? else: ?>
					<?= $material['name'] ?>
				<? endif ?>
			</span>
			<span class="amount">: <?= $material['amount']?></span>
		</li>
		<? endforeach; ?>
	</ul>
	
	<h3 style="clear:both">Priprema:</h3>
	<ol>
		<? foreach($receipe['ReceipePrepare'] as $prepare): ?>
		<li><?= $prepare['content']?></li>
		<? endforeach; ?>
	</ol>
</div>
<div class="sidebar right">
	<?= $this->element('list_receipes', array('receipes'=>$related_receipes)) ?>
</div>
